package com.ns.scs.feedback.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ns.scs.feedback.dto.FeedBackPageDto;
import com.ns.scs.feedback.entry.FeedBackEntry;
import com.ns.scs.feedback.mapper.FeedBackEntryMapper;
import com.ns.scs.feedback.vo.FeedBackExtraVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 参数业务实现
 *
 * @author lw
 * @since 2024/09/23
 */
@Service
@RequiredArgsConstructor
@Slf4j
public class FeedBackServiceImpl extends ServiceImpl<FeedBackEntryMapper, FeedBackEntry> implements IFeedBackService {
    private final FeedBackEntryMapper mapper;

    @Override
    public Page<FeedBackExtraVO> getList(FeedBackPageDto dto) {
        return mapper.getList(dto, new Page<>(dto.getCurrent(), dto.getSize()));
    }
}
